//
//  LWXTopicsCell.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import "LWXTopicsCell.h"

@interface LWXTopicsCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *titleImageView;
@property (weak, nonatomic) IBOutlet UILabel *descLabel;
@property (weak, nonatomic) IBOutlet UIImageView *userNameImageView;
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *commentsCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *praiseCountLabel;

@property (weak, nonatomic) IBOutlet UILabel *countLabel;

@end
@implementation LWXTopicsCell

- (void)layoutSubviews {
    
    self.titleLabel.text = self.model.title;
    [self.titleImageView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.descLabel.text = self.model.content;
    [self.userNameImageView sd_setImageWithURL:[NSURL URLWithString:self.model.icon]];
    self.userNameLabel.text = self.model.uname;
    
    self.commentsCountLabel.text = [NSString stringWithFormat:@"%ld",(long)self.model.comment];
 
    self.praiseCountLabel.text = [NSString stringWithFormat:@"%ld",(long)self.model.like];
    self.countLabel.text = [NSString stringWithFormat:@"%ld人参与",(long)self.model.view];
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
